package cn.wolfcode.luowowo.ticket.domain;

import cn.wolfcode.luowowo.domain.BaseDomain;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
@Getter
@Setter
public class Payment extends BaseDomain {

    private Long id;
    //购票id
    private Long userId;
    //购票时间
    @DateTimeFormat(pattern = "yyyy-MM-dd:HH:mm")
    private Date paymentTime;
    //取票时间
    @DateTimeFormat(pattern = "yyyy-MM-dd:HH:mm")
    private Date fetchTime;
    //门票价格
    private BigDecimal price;
    //门票数量
    private Integer num;
    //登录用户名字
    private String userName;
    //门票id
    private PriceTicket ticketId;
    //取票用户手机号
    private String fetchPhone;
}